package com.fh.thread;


public class EmailThread extends Thread{
    private String userEmail;
    private String title;
    private String msg;


    public EmailThread(String userEmail, String title, String msg) {
        this.userEmail = userEmail;
        this.title = title;
        this.msg = msg;
    }
    @Override
    public void run() {
        try {
            com.fh.utils.MailUtil.send(userEmail,title,msg);
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException();
        }
    }

}
